<?php
/**
 * FastApp.
 * 9/21/24
 * @Author deepsea159
 * @Contact telegram:deepsea159
 */

namespace App\Game\Api\Controller;

namespace App\Game\Api\Controller;

use App\Fastapp\Api\Controller\ApiController;
use App\Fastapp\Aspect\ApiAuth;
use App\Game\Api\Service\VipService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\PostMapping;
use Psr\Http\Message\ResponseInterface;

#[Controller('api/game/vip')]
class VipController extends ApiController
{
    #[Inject]
    public VipService $service;

    #[GetMapping('list')]
    public function list(): ResponseInterface
    {
        return $this->success($this->service->list());
    }

    #[GetMapping('level')]
    public function level(): ResponseInterface
    {
        return $this->success($this->service->level());
    }
}